package com.linghang.wusthelper.dao.primary;

import com.linghang.wusthelper.entity.primary.BookRentHistory;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author origin
 */
@Repository
//主数据源的SqlSessionTemplate
@Qualifier("primarySqlSessionTemplate")
public interface BookRentHistoryDao {

    int insert(BookRentHistory bookRentHistory);

    int exist(@Param("stuNum") String stuNum,@Param("bookCode") String bookCode,@Param("rentTime") String rentTime);

    List<BookRentHistory> selectListByStuNum(String stuNum);

    int delete(String stuNum);
}
